$(function(){
    		var current=0;
    		var length=$(".pics-list li").length-1;
    		var width=$(".pics-list li").width();
    		
    		function next(){
    			if(current >= length){
    			current=0;
    			}
    			else {
    				current++;
    			}
    			
    			$(".points-list li").eq(current).addClass("active").siblings().removeClass("active");
    			$(".pics-list").css("left",-1*width * current + "px");
    		}
    		
    		function prev(){
    			if(current<=0)
    			current=length;
    			else
    			current--;
    			
    			$(".points-list li").eq(current).addClass("active").siblings().removeClass("active");
    			$(".pics-list").css("left",-1*width * current + "px");
    		}
    		
    		setInterval(function(){
    			next();
    		},3000)
    		
    		$(".banner-box .next").click(function(){
    			next();
    		})
    		
    		$(".banner-box .prev").click(function(){
    			prev();
    		})
    	})